﻿<%@ Page Title="Carga Gestion de Registro" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmSeguroVehicularCarga.aspx.cs" Inherits="Crosland.Automotriz.Web.Minorista.wFrmSeguroVehicularCarga" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
  <%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">

<script type="text/javascript">

    function ShowPopupPopupFormarto() {
        PopupFormarto.Show();
    }

    function ShowPopupPopupSeleccione() {
        PopupSeleccione.Show();
    }

    function MostrarMensaje() {
        popupMensaje.Show();
     }

    function MensajeSatisfactorio() {
        alert('Paquete ejecutado satisfactoriamente.');
    }
    function MensajeFallido() {
        alert('Paquete ejecutado con errores.');
     }

</script>

    <div class="main-header" style="width:100%;">
    <div class="main-titulo">Carga Gestión de Registro</div>
    </div>

    

    <div style="padding: 5px">

    <table width="100%">
    <tr>
    <td>
        <table width="100%">
            <tr>
                <td width="145">
        <dx:ASPxButton ID="btnImportarExcel" runat="server" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" Height="30px" onclick="btnImportarExcel_Click" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
            Text="Importar Excel" Width="140px">
            <Image Url="~/Images/excel16.gif">
            </Image>
        </dx:ASPxButton>
                </td>
                <td>
                <dx:ASPxButton runat="server" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                        CssPostfix="Office2010Blue" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" Width="100px" 
                        ID="btnSalir" OnClick="btnSalir_Click" Height="30px">
<Image Url="~/Images/logout.png"></Image>
</dx:ASPxButton>

                </td>
            </tr>
        </table>
        </td>
    </tr>
    <tr>
    <td>
        <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
            GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
            HeaderText="Filtro de búsqueda" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100%">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                PaddingTop="10px" />
            <HeaderStyle>
            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                PaddingTop="3px" />
            </HeaderStyle>
            <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table width="100%">
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Font-Bold="True" ForeColor="Black" 
                    Text="Tipo de Filtro"></asp:Label>
            </td>
            <td style="width: 110px">
                <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="Black" 
                    Text="Año:"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="Black" 
                    Text="Mes:"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="255">
                <dx:ASPxComboBox ID="cboTipoFiltro" runat="server" AutoPostBack="True" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Height="30px" 
                    OnSelectedIndexChanged="cboTipoFiltro_SelectedIndexChanged" SelectedIndex="0" 
                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="250px">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="Periodo Emisión de Comprobante" 
                            Value="1" />
                        <dx:ListEditItem Text="Periodo de Entrega de Póliza" Value="2" />
                    </Items>
                    <ItemStyle Height="30px" />
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <DropDownButton Width="20px">
                    </DropDownButton>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td style="width: 105px">
                <dx:ASPxComboBox ID="cboAnioFactura" runat="server" AutoPostBack="True" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Height="30px" 
                    OnSelectedIndexChanged="cboAnioFactura_SelectedIndexChanged" SelectedIndex="0" 
                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="2012" Value="2012" />
                        <dx:ListEditItem Text="2013" Value="2013" />
                        <dx:ListEditItem Text="2014" Value="2014" />
                    </Items>
                    <ItemStyle Height="30px" />
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <DropDownButton Width="20px">
                    </DropDownButton>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td>
                <dx:ASPxComboBox ID="cboMesFactura" runat="server" AutoPostBack="True" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Height="30px" 
                    OnSelectedIndexChanged="cboMesFactura_SelectedIndexChanged" SelectedIndex="0" 
                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="ENERO" Value="1" />
                        <dx:ListEditItem Text="FEBRERO" Value="2" />
                        <dx:ListEditItem Text="MARZO" Value="3" />
                        <dx:ListEditItem Text="ABRIL" Value="4" />
                        <dx:ListEditItem Text="MAYO" Value="5" />
                        <dx:ListEditItem Text="JUNIO" Value="6" />
                        <dx:ListEditItem Text="JULIO" Value="7" />
                        <dx:ListEditItem Text="AGOSTO" Value="8" />
                        <dx:ListEditItem Text="SETIEMBRE" Value="9" />
                        <dx:ListEditItem Text="OCTUBRE" Value="10" />
                        <dx:ListEditItem Text="NOVIEMBRE" Value="11" />
                        <dx:ListEditItem Text="DICIEMBRE" Value="12" />
                    </Items>
                    <ItemStyle Height="30px" />
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <DropDownButton Width="20px">
                    </DropDownButton>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
        </tr>
    </table>
                </dx:PanelContent>
</PanelCollection>
        </dx:ASPxRoundPanel>
        </td>
    </tr>
    </table>

    

        <dx:ASPxGridView ID="gv" runat="server" AutoGenerateColumns="False" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" Width="100%">
            <Columns>
                <dx:GridViewCommandColumn VisibleIndex="0">
                    <ClearFilterButton Visible="True">
                    </ClearFilterButton>
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn Caption="Número Comprobante" FieldName="NRO_FACTURA" 
                    VisibleIndex="1">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Fecha Emisión" FieldName="FEC_FACTURA" 
                    VisibleIndex="2">
                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Fecha Impresión CMP" 
                    FieldName="FEC_IMPRESION_CMP" VisibleIndex="3">
                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Fecha Impresión CT" 
                    FieldName="FEC_IMPRESION_CT" VisibleIndex="4">
                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Fecha Entrega CMP" FieldName="FEC_ENT_CMP" 
                    VisibleIndex="5">
                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Fecha Entrega CT" FieldName="FEC_ENT_CT" 
                    VisibleIndex="6">
                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Fecha Entrega Póliza" 
                    FieldName="FEC_ENT_POL" VisibleIndex="7">
                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsBehavior AllowDragDrop="False" AllowGroup="False" />
            <Settings ShowFilterRow="True" ShowGroupButtons="False" 
                ShowHeaderFilterBlankItems="False" />
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
        </dx:ASPxGridView>

    

    </div>

    <dx:ASPxPopupControl ID="PopupFormarto" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupFormarto" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent5" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Seleccione el formato correcto!
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton5" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	PopupFormarto.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>

                </dx:ASPxPopupControl>

    <dx:ASPxPopupControl ID="PopupSeleccione" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupSeleccione" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                           <LoadingPanelStyle ImageSpacing="5px">
                           </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent3" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Seleccione un archivo excel!
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	PopupSeleccione.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>

                </dx:ASPxPopupControl>

    <dx:ASPxPopupControl ID="popupMensaje" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupMensaje" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                        <table width="100%">
                        <tr>
                        <td align="center">
                        
                        
                        
                            <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        <tr>
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupMensaje.Hide();
}" />
                            </dx:ASPxButton>
                            </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>

                </dx:ASPxPopupControl>

    <dx:ASPxPopupControl ID="pcCargarExcel" runat="server" AllowDragging="True" 
        CloseAction="CloseButton" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" EnableHotTrack="False" HeaderText="Importar Excel" 
        Modal="True" PopupHorizontalAlign="WindowCenter" 
        PopupVerticalAlign="WindowCenter" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="400px" AllowResize="True">
        <HeaderImage Url="~/Images/excel16.gif">
        </HeaderImage>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">


<table width="100%">
        <tr>
            <td colspan="2">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <dx:ASPxUploadControl ID="ucCargador" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" Height="30px" 
                                OnFileUploadComplete="ucCargador_FileUploadComplete" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="100%">
                                <ValidationSettings AllowedFileExtensions=".xlsx" MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}">
                                </ValidationSettings>
                            </dx:ASPxUploadControl>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td align="right">
                <dx:ASPxButton ID="btnCargarExcel" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Height="30px" OnClick="btnCargarExcel_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Cargar Excel" Width="130px">
                    <Image Url="~/Images/upload.png">
                    </Image>
                </dx:ASPxButton>
            </td>
        </tr>
    </table>


</dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>
</asp:Content>
